package com.bage.finance.biz.dto.form;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class UpdateCurrencyConfigForm {
    @NotNull
    @ApiModelProperty(value = "币别id")
    private Long id;

    @NotBlank
    @ApiModelProperty(value = "编码[RMB,USD]")
    private String code;

    @NotBlank
    @ApiModelProperty(value = "币别名称[人民币,美元]")
    private String name;

    @NotNull
    @Range(min = 0)
    @ApiModelProperty(value = "汇率")
    private BigDecimal exchangeRate;
}
